<script>
  class UnitTest {}
  {
    class TestFactory {
      makeTest() {
        return new UnitTest()
      }
    }
    console.assert(TestFactory.makeTest() instanceof UnitTest)
  }
  {
    const methodName = 'makeTest'
    class TestFactory {
      static [methodName]() {
        return new UnitTest()
      }
    }
    console.assert(TestFactory.createTest() instanceof UnitTest)
  }
  {
    class UnitTest {
      get testType() {
        return 'unit'
      }
    }
    console.assert(UnitTest.testType, 'unit')
  }
  {
    const type = 'test' + 'Type'
    class IntegrationTest {
      get type() {
        return 'integration'
      }
    }
    console.assert('testType' in IntegrationTest)
    console.assert(IntegrationTest.testType, 'integration')
  }
</script>
